const state = {
}

const mutations = {
  SET_LINENUMBER: (state, lineNumber) => {
    window.localStorage.setItem('lineNumber', lineNumber)
  },
  SET_LINEID: (state, lineId) => {
    window.localStorage.setItem('lineId', lineId)
  }
}

const actions = {
  setLineNumber({ commit }, lineNumber) {
    commit('SET_LINENUMBER', lineNumber)
  },
  setLineId({ commit }, lineId) {
    commit('SET_LINEID', lineId)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
